import request from "../utils/request";

// 添加视频
export const addSenceVideo = (data) => {
    return request.post("/SenceVideo/AddSenceVideo", data)
}

// 修改视频
export const updateSenceVideo = (data) => {
    return request.post("/SenceVideo/UpdateSenceVideo", data)
}

// 删除视频
export const deleteSenceVideo = (params) => {
    return request.delete("/SenceVideo/DeleteSenceVideo", {
        params
    })
}

// 通过userId查找视频列表
export const getSenceVideoByUserId = (params) => {
    return request.get("/SenceVideo/GetSenceVideoByUserId", {
        params
    })
}

// 场景绑定视频
export const bindSenceVideo = (data) => {
    return request.post("/SenceVideo/BindSenceVideo", data)
}

// 视频绑定场景
export const bindVideoSence = (data) => {
    return request.post("/SenceVideo/BindVideoSence", data)
}

// 视频绑定一个场景
export const BindOneVideoSence = (data) => {
    return request.post("/SenceVideo/BindOneVideoSence", data)
}

// 通过视频id查询场景id
export const getBindSenceIds = (params) => {
    return request.get("/SenceVideo/GetBindSenceIds", {
        params
    })
}

// 通过SenceId查询视频列表
export const getSenceVideoBySenceId = (params) => {
    return request.get("/SenceVideo/GetSenceVideoBySenceId", {
        params
    })
}